package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TRegisterLanguage;
import com.ruoyi.business.vo.TRegisterLanguageVo;
import com.ruoyi.business.mapper.TRegisterLanguageMapper;
import com.ruoyi.business.service.ITRegisterLanguageService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 外语水平Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-17
 */
@Service
public class TRegisterLanguageServiceImpl extends ServiceImpl<TRegisterLanguageMapper, TRegisterLanguage> implements ITRegisterLanguageService {

    @Override
    public TableDataInfo<TRegisterLanguageVo> queryList(TRegisterLanguageVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterLanguageVo> queryAll(TRegisterLanguageVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterLanguageVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
